import request from '@/utils/request'

// 查询安全阀台账列表
export function listValve(query) {
  return request({
    url: '/ledger/valve/list',
    method: 'get',
    params: query
  })
}

// 查询安全阀台账详细
export function getValve(id) {
  return request({
    url: '/ledger/valve/' + id,
    method: 'get'
  })
}

// 新增安全阀台账
export function addValve(data) {
  return request({
    url: '/ledger/valve',
    method: 'post',
    data: data
  })
}

// 修改安全阀台账
export function updateValve(data) {
  return request({
    url: '/ledger/valve',
    method: 'put',
    data: data
  })
}

// 删除安全阀台账
export function delValve(id) {
  return request({
    url: '/ledger/valve/' + id,
    method: 'delete'
  })
}

export function exportValve(query) {
  return request({
    url: '/ledger/valve/export',
    method: 'get',
    params: query
  })
}
